#ifndef GRAPHICS_INDEXBUFFER_H
#define GRAPHICS_INDEXBUFFER_H
#include <core/core.h>
#include <core/object.h>

namespace yam3d
{
namespace graphics
{

    class IndexBuffer : public core::Object
    {
    public:
        IndexBuffer( const core::vector<unsigned int>& indices );
        virtual ~IndexBuffer();

        void draw();

        void getIndices(core::vector<unsigned int>* indices);
    private:
       core::UIntVector m_indices;

        IndexBuffer();
        IndexBuffer(const IndexBuffer&);
        IndexBuffer& operator=(const IndexBuffer&);
    };

}
}

#endif // GRAPHICS_INDEXBUFFER_H
